<link rel="stylesheet" href="<?php $configEntity = new Default_Model_Entity_Config ();
		echo $configEntity->getCodeValue ( 'zend_base_url' );?>media/css/ticker-style2.css" type="text/css"/>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="<?php $configEntity = new Default_Model_Entity_Config ();
		echo $configEntity->getCodeValue ( 'zend_base_url' );?>media/js/jquery.ticker.js"></script> 
<div id="news_tricker_container">
  <div class="news_tricker_inner">
    <div id="ticker-wrapper" class="no-js">
      <ul id="js-news" class="js-hidden">
        <?php foreach ($this->newsList as $item):?>
        <li class="news-item"><a href="#"><?php echo $item->content;?></a></li>
        <?php endforeach;?>
      </ul>
    </div>
    <div id="ticker-controls_post">
      <p id="play-pause_post"class="button"><a>Pause</a></p>
      <!-- 
              <p id="prev_post" class="button"><a><span id="prev_post_bg">&nbsp;</span></a></p>
              <p id="next_post" class="button"><a><span id="next_post_bg">&nbsp;</span></a></p>
              -->
      <div id="prev_post" class="prev_post_bg"><a href="##">&nbsp;&nbsp;&nbsp;</a></div>
      <div id="next_post" class="next_post_bg"><a href="##">&nbsp;&nbsp;&nbsp;</a></div>
    </div>
  </div>
</div>

<!-- END OF NEWS TRICKER --> 
<script type="text/javascript" charset="utf-8">
 
$(document).ready(function(){

  $('#js-news').ticker({
	  displayType: "fade",
	  controls:true,
	  titleText: "Latest News:"
	  });
  news_ticker_button_syn();  
});


var news_tricker_timeId = 0;

function news_tricker_resume(){
	$("#ticker-controls_post #play-pause_post").click();
}

function news_ticker_button_syn(){
	$("#ticker-controls_post #play-pause_post").click(function(){
		  $("#ticker-controls #play-pause").click();
	  });

	  $("#ticker-controls_post #prev_post").click(function(){
		  $("#ticker-controls #prev").click();
		  window.clearTimeout(news_tricker_timeId);
		  news_tricker_timeId = window.setTimeout( "news_tricker_resume()" , 2000 );
	  });

	  $("#ticker-controls_post #next_post").click(function(){
		  $("#ticker-controls #next").click();
		  window.clearTimeout(news_tricker_timeId);
		  news_tricker_timeId = window.setTimeout( "news_tricker_resume()" , 2000 );
	  });
}

</script>